package com.mall.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户表
 * @author : cck
 * @date : 2025-10-10
 */

@Schema(name = "系统用户表",description = "")
@TableName("sys_user")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUser implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 账号 */
    @Schema(name = "账号",description = "")
    private String username;
    /** 账号密码 */
    @Schema(name = "账号密码",description = "")
    private String password;
    /** 密码盐 */
    @Schema(name = "密码盐",description = "")
    private String salt;
    /** 昵称 */
    @Schema(name = "昵称",description = "")
    private String nickname;
    /** 头像 */
    @Schema(name = "头像",description = "")
    private String avatar;
    /** 状态;0封禁 1启用 */
    @Schema(name = "状态",description = "0封禁 1启用")
    private Integer status;
    /** 创建人 */
    @Schema(name = "创建人",description = "")
    private Long createdBy;
    /** 最后登录时间 */
    @Schema(name = "最后登录时间",description = "")
    private String lastLoginTime;
}